package day7;

/**
 * @author oldliu
 * @since 1.0
 */
public class JiaowuTest {
    public static void main(String[] args) {
        Jiaowuch j=new Jiaowuch();
        j.name="教务处杨老师";
        int yuwen=90;
        System.out.println("语文是："+yuwen);
        j.calc(yuwen);
        System.out.println("统计结束，语文是："+yuwen);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>");
        Student stu=new Student();
        stu.name="笪美琪";
        stu.age=20;
        stu.chinese=98;
        stu.show();
        j.calc2(stu);
        System.out.println("统计结束：");
        stu.show();
        System.out.println(">>>>>>>>>>>>>>>>>>");
        Student []sr={new Student("老吴",31,90,89,64),new Student("2吴",31,90,89,64),new Student("孙武",31,90,89,74)};

        int avg = j.calcAvg(sr);
        System.out.println("平均分是："+avg);
    }
}
